// pages/MyActivityContent/MyActivityContent.js
import {activityContentGetContentById} from "../../services/activityContentReq";

Page({

    /**
     * 页面的初始数据
     */
    data: {
        contentlist:[]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        let contentlist = this.data.contentlist;
        activityContentGetContentById(res=>{
            // console.log(res)
            contentlist = res.data.data;
            this.setData({
                contentlist
            })
        })
    },
    handleGoDetail(e) {
        const id = e.currentTarget.dataset.id
        wx.navigateTo({
            url: '../contentDetail/contentDetail?id=' + id,
        })
    },
})
